package com.ycl2.imports.lisner;

import com.ycl2.imports.entity.Importexcel;
import com.ycl2.imports.service.impl.ImportexcelServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @description:
 * @projectName:zbf-jiaoyianquan
 * @see:com.ycl.imports.lisner
 * @author:袁成龙
 * @createTime:2020/10/20 13:25
 * @version:1.0
 */
public class ThreadImport implements Runnable {

    @Autowired
    private ImportexcelServiceImpl importexcelService;

    //private int size;
    private List<Importexcel> importexcels;

    public ThreadImport(List<Importexcel> importexcels) {
        this.importexcels = importexcels;
    }

    public void getlist(){
        for (int i = 0; i <importexcels.size() ; i++) {
            importexcels.add(importexcels.get(i));
        }
    }


    @Override
    public void run() {
            getlist();
    }
}